home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 3437 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.6 KB

  1. Path: news.sprintlink.net!rockyd!cmcl2!schonberg!dewar
  2. From: dewar@cs.nyu.edu (Robert Dewar)
  3. Newsgroups: comp.lang.ada,comp.lang.c++,comp.lang.c,comp.lang.modula3,comp.lang.modula2,comp.lang.eiffel
  4. Subject: Re: Hungarian notation
  5. Date: 23 Jan 1996 09:31:35 -0500
  6. Organization: Courant Institute of Mathematical Sciences
  7. Message-ID: <dewar.822407363@schonberg>
  8. References: <30C40F77.53B5@swsbbs.com> <4bd <4cc2b2$11jq@navajo.gate.net> <4cud8f$gup@news.netvision.net.il> <4dttefINNo29@keats.ugrad.cs.ubc.ca> <Pine.HPP.3.91.960122145028.27524A-100000@clear.cs.byu.edu>
  9. NNTP-Posting-Host: schonberg.cs.nyu.edu
  10. X-Newsreader: NN version 6.5.0 (NOV)
  11.  
  12. Douglas said
  13.  
  14. "The way I was taught, you use typedefs only for variables that are likely
  15. to change type (and you want to change all of the instances of that type
  16. at once) and for cross-platform portability (in a multi-language
  17. environment like Windows or when you are saving data to disk).  Using it
  18. for most other things will, as you said, only hamper coding and debugging
  19. efforts.  However, to use those examples to induce "typedefs are useless"
  20. is jumping to a bad conclusion.  If you want to argue that the uses that
  21. I gave are bad, we can do that, but to generalize without looking at all
  22. potential uses isn't a good idea."
  23.  
  24. It is really remarkable listening to this debate how little understanding
  25. of abstract types most people have. A lot of writers, like Douglas, seem
  26. to almost completely confuse the notions of type and representation.
  27.  
  28. Indeed one could say that HN is all about enforcing this confusion!
  29. and making sure that type abstraction is not used as a tool in your
  30. program.
  31.  
  32. Most amazing!
  33.  
  34.